let str='abcdef'

console.log(str.length);
console.log(str[1])
str=str+'g'


const newstr=str.slice(0,3)
const arr=str.split('c')
console.log(arr.join(''));
console.log(arr.reverse());

console.log(arr)
